﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HR.Appointments.Service
{
    /// <summary>
    /// Represents errors that occur during the service execution.
    /// </summary>
    [SerializableAttribute]
    public class SubmitException : System.Exception
	{
        /// <summary>
        /// Inizializes a new exception
        /// </summary>
		public SubmitException() : base() {}

        /// <summary>
        /// Exception with message
        /// </summary>
        /// <param name="message">The message that describes the error</param>
		public SubmitException(string message) : base(message) {}

        /// <summary>
        /// Exception with message and throws inner exception.
        /// </summary>
        /// <param name="message">The reason for the exception</param>
        /// <param name="innerException">The exception that is cause of the exception.</param>
        public SubmitException(string message, Exception innerException) : base(message, innerException) { }

        //protected SubmitException(SerializationInfo info, StreamingContext contxt);
	}
}
